#include "HAPIRepelSurface.h"

using namespace HAPI;

void HAPIRepelSurface::getForces(ContactInfo &info) {
	// origin is the proxy position after proxy movement. probe_to_origin is the vector from the probe to the proxy
	Vec3 probe_to_origin = info.globalOrigin() - info.globalProbePosition();

	// set the spring force
	info.setGlobalForce( repellingness * probe_to_origin );
}

void HAPIRepelSurface::getProxyMovement(ContactInfo &info) {
	return;
}